import {api} from "@/utils/request";




// 获取分类品牌列表
export const GetCategoryBrandPageList=(page:number,limit:number,data:any)=>{
return api({
url: '/product/category-brand/getAll/'+page+'/'+limit,
method: 'get',
params: data 

})
}
// 添加分类品牌
export const AddCategoryBrand=(data:any)=>{
return api({
url: '/product/category-brand/save',
method: 'post',
data 
})
}
// 修改分类品牌
export const UpdateCategoryBrand=(data:any)=>{
return api({
url: '/product/category-brand/updateById',
method: 'put',
data 
})
}
// 删除分类品牌
export const DeleteCategoryBrand=(id:number)=>{
return api({
url: '/product/category-brand/deleteById/'+id,
method: 'delete',
})
}

// 根据分类id获取品牌列表
export const FindBrandByCategoryId=(id:number)=>{
    return api({
    url: '/product/category-brand/findBrandByCategoryId/'+id,
    method: 'get',
    })
 }







